package com.ssmdemo.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.lang.reflect.Type;

@TableName(value = "t_role")
public class RoleEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(value = "role_name")
    private String roleName;
    @TableField(value = "role_desc")
    private String roleDesc;
//    @TableField(value = "role_state")
//    private Integer roleState;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

//    public Integer getRoleState() {
//        return roleState;
//    }
//
//    public void setRoleState(Integer roleState) {
//        this.roleState = roleState;
//    }

    @Override
    public String toString() {
        return "RoleEntity{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                ", roleDesc='" + roleDesc + '\'' +
                '}';
    }
}
